From 570e223242de00d9cf673d719cb68d28e4a1fcdd Mon Sep 17 00:00:00 2001 From: Matthew Daley Date: Fri, 8 Nov 2013 13:45:10 +1300 Subject: [PATCH] libxc: remove pointless null pointer check ctxt_buf is guaranteed non-null here. Signed-off-by: Matthew Daley Acked-by: Ian Campbell --- tools/libxc/xc_domain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 2cea6e3841..1ccafc5185 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -444,8 +444,7 @@ int xc_domain_hvm_getcontext_partial(xc_interface *xch, ret = do_domctl(xch, &domctl); - if ( ctxt_buf ) - xc_hypercall_bounce_post(xch, ctxt_buf); + xc_hypercall_bounce_post(xch, ctxt_buf); return ret ? -1 : 0; } -- 2.30.2